Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deleting DBs in test for PSQL and document setup #40

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

EnriqueL8
Copy link
Contributor

Small PR to document that a Postgres instance needs to be running for the e2e of the go-sdk and make sure that the name of the table is not lowercased if not the tables will not get cleaned up after the test

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.26%. Comparing base (bad201a) to head (ab14795).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
+ Coverage   68.95%   70.26%   +1.30%     
==========================================
  Files          12       12              
  Lines         538      538              
==========================================
+ Hits          371      378       +7     
+ Misses        118      113       -5     
+ Partials       49       47       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Comment on lines 695 to 704
func TestKeyManager(t *testing.T) {
keypair := decryptKeyStorev3(t)

keyEntry := key.NewKeyEntryFromPrivateKeyBytes([32]byte(keypair.PrivateKeyBytes()))
assert.NotNil(t, keyEntry)

assert.NotNil(t, keyEntry.PrivateKey)
assert.NotNil(t, keyEntry.PublicKey)
assert.NotNil(t, keyEntry.PrivateKeyForZkp)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this an intended removal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no my bad

Copy link
Contributor

@jimthematrix jimthematrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except for the question from @Chengxuan

@jimthematrix
Copy link
Contributor

sorry missed this in the review, you said:

make sure that the name of the table is not lowercased if not the tables will not get cleaned up after the test

where was this addressed?

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@EnriqueL8
Copy link
Contributor Author

@jimthematrix jimthematrix merged commit d74d756 into main Aug 16, 2024
7 checks passed
@jimthematrix jimthematrix deleted the fix_db_setup_go branch August 16, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants